home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 001-025 / scopedisk6 / 6809xasm / tst02.a < prev    next >
Text File  |  1995-03-18  |  21KB  |  421 lines

  1.         TTL   Test of the 6809 assembler - #2
  2. DLabel  equ   $10
  3. Label1  EQU   $1234
  4. Label2  equ   $1005
  5.         setdp $1000          set direct page in the assembler
  6.         ORG   $B000
  7.  
  8. bita1   bita  #12            immediate
  9.         bita  DLabel         extended
  10.         bita  Label1         extended
  11.         bita  <Label2        forced direct
  12.         bita  >Label1        forced extended
  13.         bita  Label1         extended
  14.         bita  Label2         direct
  15.         bita  ,x             0 bit offset index
  16.         bita  1,x            5 bit offset index
  17.         bita  64,x           8 bit offset index
  18.         bita  4096,x         16 bit offset index
  19.         bita  [,x]           0 bit offset indirect index
  20.         bita  [1,x]          5 bit offset indirect index
  21.         bita  [64,x]         8 bit offset indirect index
  22.         bita  [4096,x]       16 bit offset indirect index
  23.         bita  a,x            'A' register index
  24.         bita  b,x            'B' register index
  25.         bita  d,x            'D' ('A' & 'B') register index
  26.         bita  [a,x]          'A' register indirect index
  27.         bita  [b,x]          'B' register indirect index
  28.         bita  [d,x]          'D' ('A' & 'B') register indirect index
  29.         bita  ,x+            index with 1 post-increment
  30.         bita  ,x++           index with 2 post-increment
  31.         bita  ,-x            index with 1 pre-decrement
  32.         bita  ,--x           index with 2 pre-decrement
  33.         bita  [,x++]         indirect index with post-increment
  34.         bita  [,--x]         indirect index with pre-drecement
  35.         bita  1,pcr          8 bit index from 'PC'
  36.         bita  64,pcr         8 bit index from 'PC'
  37.         bita  <DLabel,pcr    forced 8 bit index from 'PC'
  38.         bita  4096,pcr       16 bit index from 'PC'
  39.         bita  >DLabel,pcr    forced 16 bit index from 'PC'
  40.         bita  [1,pcr]        8 bit indirect index from 'PC'
  41.         bita  [64,pcr]       8 bit indirect index from 'PC'
  42.         bita  [4096,pcr]     16 bit indirect index from 'PC'
  43.         bita  [Label1]       memory indirect
  44.         page
  45. bitb1   bitb  #12            immediate
  46.         bitb  DLabel         extended
  47.         bitb  Label1         extended
  48.         bitb  <Label2        forced direct
  49.         bitb  >Label1        forced extended
  50.         bitb  Label1         extended
  51.         bitb  Label2         direct
  52.         bitb  ,x             0 bit offset index
  53.         bitb  1,x            5 bit offset index
  54.         bitb  64,x           8 bit offset index
  55.         bitb  4096,x         16 bit offset index
  56.         bitb  [,x]           0 bit offset indirect index
  57.         bitb  [1,x]          5 bit offset indirect index
  58.         bitb  [64,x]         8 bit offset indirect index
  59.         bitb  [4096,x]       16 bit offset indirect index
  60.         bitb  a,x            'A' register index
  61.         bitb  b,x            'B' register index
  62.         bitb  d,x            'D' ('A' & 'B') register index
  63.         bitb  [a,x]          'A' register indirect index
  64.         bitb  [b,x]          'B' register indirect index
  65.         bitb  [d,x]          'D' ('A' & 'B') register indirect index
  66.         bitb  ,x+            index with 1 post-increment
  67.         bitb  ,x++           index with 2 post-increment
  68.         bitb  ,-x            index with 1 pre-decrement
  69.         bitb  ,--x           index with 2 pre-decrement
  70.         bitb  [,x++]         indirect index with post-increment
  71.         bitb  [,--x]         indirect index with pre-drecement
  72.         bitb  1,pcr          8 bit index from 'PC'
  73.         bitb  64,pcr         8 bit index from 'PC'
  74.         bitb  <DLabel,pcr    forced 8 bit index from 'PC'
  75.         bitb  4096,pcr       16 bit index from 'PC'
  76.         bitb  >DLabel,pcr    forced 16 bit index from 'PC'
  77.         bitb  [1,pcr]        8 bit indirect index from 'PC'
  78.         bitb  [64,pcr]       8 bit indirect index from 'PC'
  79.         bitb  [4096,pcr]     16 bit indirect index from 'PC'
  80.         bitb  [Label1]       memory indirect
  81.         page
  82.         clra
  83.         clrb
  84.  
  85. clr1    clr   DLabel         extended
  86.         clr   Label1         extended
  87.         clr   <Label2        forced direct
  88.         clr   >Label1        forced extended
  89.         clr   Label1         extended
  90.         clr   Label2         direct
  91.         clr   ,x             0 bit offset index
  92.         clr   1,x            5 bit offset index
  93.         clr   64,x           8 bit offset index
  94.         clr   4096,x         16 bit offset index
  95.         clr   [,x]           0 bit offset indirect index
  96.         clr   [1,x]          5 bit offset indirect index
  97.         clr   [64,x]         8 bit offset indirect index
  98.         clr   [4096,x]       16 bit offset indirect index
  99.         clr   a,x            'A' register index
  100.         clr   b,x            'B' register index
  101.         clr   d,x            'D' ('A' & 'B') register index
  102.         clr   [a,x]          'A' register indirect index
  103.         clr   [b,x]          'B' register indirect index
  104.         clr   [d,x]          'D' ('A' & 'B') register indirect index
  105.         clr   ,x+            index with 1 post-increment
  106.         clr   ,x++           index with 2 post-increment
  107.         clr   ,-x            index with 1 pre-decrement
  108.         clr   ,--x           index with 2 pre-decrement
  109.         clr   [,x++]         indirect index with post-increment
  110.         clr   [,--x]         indirect index with pre-drecement
  111.         clr   1,pcr          8 bit index from 'PC'
  112.         clr   64,pcr         8 bit index from 'PC'
  113.         clr   <DLabel,pcr    forced 8 bit index from 'PC'
  114.         clr   4096,pcr       16 bit index from 'PC'
  115.         clr   >DLabel,pcr    forced 16 bit index from 'PC'
  116.         clr   [1,pcr]        8 bit indirect index from 'PC'
  117.         clr   [64,pcr]       8 bit indirect index from 'PC'
  118.         clr   [4096,pcr]     16 bit indirect index from 'PC'
  119.         clr   [Label1]       memory indirect
  120.         page
  121. cmpa1   cmpa  #12            immediate
  122.         cmpa  DLabel         extended
  123.         cmpa  Label1         extended
  124.         cmpa  <Label2        forced direct
  125.         cmpa  >Label1        forced extended
  126.         cmpa  Label1         extended
  127.         cmpa  Label2         direct
  128.         cmpa  ,x             0 bit offset index
  129.         cmpa  1,x            5 bit offset index
  130.         cmpa  64,x           8 bit offset index
  131.         cmpa  4096,x         16 bit offset index
  132.         cmpa  [,x]           0 bit offset indirect index
  133.         cmpa  [1,x]          5 bit offset indirect index
  134.         cmpa  [64,x]         8 bit offset indirect index
  135.         cmpa  [4096,x]       16 bit offset indirect index
  136.         cmpa  a,x            'A' register index
  137.         cmpa  b,x            'B' register index
  138.         cmpa  d,x            'D' ('A' & 'B') register index
  139.         cmpa  [a,x]          'A' register indirect index
  140.         cmpa  [b,x]          'B' register indirect index
  141.         cmpa  [d,x]          'D' ('A' & 'B') register indirect index
  142.         cmpa  ,x+            index with 1 post-increment
  143.         cmpa  ,x++           index with 2 post-increment
  144.         cmpa  ,-x            index with 1 pre-decrement
  145.         cmpa  ,--x           index with 2 pre-decrement
  146.         cmpa  [,x++]         indirect index with post-increment
  147.         cmpa  [,--x]         indirect index with pre-drecement
  148.         cmpa  1,pcr          8 bit index from 'PC'
  149.         cmpa  64,pcr         8 bit index from 'PC'
  150.         cmpa  <DLabel,pcr    forced 8 bit index from 'PC'
  151.         cmpa  4096,pcr       16 bit index from 'PC'
  152.         cmpa  >DLabel,pcr    forced 16 bit index from 'PC'
  153.         cmpa  [1,pcr]        8 bit indirect index from 'PC'
  154.         cmpa  [64,pcr]       8 bit indirect index from 'PC'
  155.         cmpa  [4096,pcr]     16 bit indirect index from 'PC'
  156.         cmpa  [Label1]       memory indirect
  157.         page
  158. cmpb1   cmpb  #12            immediate
  159.         cmpb  DLabel         extended
  160.         cmpb  Label1         extended
  161.         cmpb  <Label2        forced direct
  162.         cmpb  >Label1        forced extended
  163.         cmpb  Label1         extended
  164.         cmpb  Label2         direct
  165.         cmpb  ,x             0 bit offset index
  166.         cmpb  1,x            5 bit offset index
  167.         cmpb  64,x           8 bit offset index
  168.         cmpb  4096,x         16 bit offset index
  169.         cmpb  [,x]           0 bit offset indirect index
  170.         cmpb  [1,x]          5 bit offset indirect index
  171.         cmpb  [64,x]         8 bit offset indirect index
  172.         cmpb  [4096,x]       16 bit offset indirect index
  173.         cmpb  a,x            'A' register index
  174.         cmpb  b,x            'B' register index
  175.         cmpb  d,x            'D' ('A' & 'B') register index
  176.         cmpb  [a,x]          'A' register indirect index
  177.         cmpb  [b,x]          'B' register indirect index
  178.         cmpb  [d,x]          'D' ('A' & 'B') register indirect index
  179.         cmpb  ,x+            index with 1 post-increment
  180.         cmpb  ,x++           index with 2 post-increment
  181.         cmpb  ,-x            index with 1 pre-decrement
  182.         cmpb  ,--x           index with 2 pre-decrement
  183.         cmpb  [,x++]         indirect index with post-increment
  184.         cmpb  [,--x]         indirect index with pre-drecement
  185.         cmpb  1,pcr          8 bit index from 'PC'
  186.         cmpb  64,pcr         8 bit index from 'PC'
  187.         cmpb  <DLabel,pcr    forced 8 bit index from 'PC'
  188.         cmpb  4096,pcr       16 bit index from 'PC'
  189.         cmpb  >DLabel,pcr    forced 16 bit index from 'PC'
  190.         cmpb  [1,pcr]        8 bit indirect index from 'PC'
  191.         cmpb  [64,pcr]       8 bit indirect index from 'PC'
  192.         cmpb  [4096,pcr]     16 bit indirect index from 'PC'
  193.         cmpb  [Label1]       memory indirect
  194.         page
  195. cmpd1   cmpd  #12            immediate
  196.         cmpd  DLabel         extended
  197.         cmpd  Label1         extended
  198.         cmpd  <Label2        forced direct
  199.         cmpd  >Label1        forced extended
  200.         cmpd  Label1         extended
  201.         cmpd  Label2         direct
  202.         cmpd  ,x             0 bit offset index
  203.         cmpd  1,x            5 bit offset index
  204.         cmpd  64,x           8 bit offset index
  205.         cmpd  4096,x         16 bit offset index
  206.         cmpd  [,x]           0 bit offset indirect index
  207.         cmpd  [1,x]          5 bit offset indirect index
  208.         cmpd  [64,x]         8 bit offset indirect index
  209.         cmpd  [4096,x]       16 bit offset indirect index
  210.         cmpd  a,x            'A' register index
  211.         cmpd  b,x            'B' register index
  212.         cmpd  d,x            'D' ('A' & 'B') register index
  213.         cmpd  [a,x]          'A' register indirect index
  214.         cmpd  [b,x]          'B' register indirect index
  215.         cmpd  [d,x]          'D' ('A' & 'B') register indirect index
  216.         cmpd  ,x+            index with 1 post-increment
  217.         cmpd  ,x++           index with 2 post-increment
  218.         cmpd  ,-x            index with 1 pre-decrement
  219.         cmpd  ,--x           index with 2 pre-decrement
  220.         cmpd  [,x++]         indirect index with post-increment
  221.         cmpd  [,--x]         indirect index with pre-drecement
  222.         cmpd  1,pcr          8 bit index from 'PC'
  223.         cmpd  64,pcr         8 bit index from 'PC'
  224.         cmpd  <DLabel,pcr    forced 8 bit index from 'PC'
  225.         cmpd  4096,pcr       16 bit index from 'PC'
  226.         cmpd  >DLabel,pcr    forced 16 bit index from 'PC'
  227.         cmpd  [1,pcr]        8 bit indirect index from 'PC'
  228.         cmpd  [64,pcr]       8 bit indirect index from 'PC'
  229.         cmpd  [4096,pcr]     16 bit indirect index from 'PC'
  230.         cmpd  [Label1]       memory indirect
  231.         page
  232. cmps1   cmps  #12            immediate
  233.         cmps  DLabel         extended
  234.         cmps  Label1         extended
  235.         cmps  <Label2        forced direct
  236.         cmps  >Label1        forced extended
  237.         cmps  Label1         extended
  238.         cmps  Label2         direct
  239.         cmps  ,x             0 bit offset index
  240.         cmps  1,x            5 bit offset index
  241.         cmps  64,x           8 bit offset index
  242.         cmps  4096,x         16 bit offset index
  243.         cmps  [,x]           0 bit offset indirect index
  244.         cmps  [1,x]          5 bit offset indirect index
  245.         cmps  [64,x]         8 bit offset indirect index
  246.         cmps  [4096,x]       16 bit offset indirect index
  247.         cmps  a,x            'A' register index
  248.         cmps  b,x            'B' register index
  249.         cmps  d,x            'D' ('A' & 'B') register index
  250.         cmps  [a,x]          'A' register indirect index
  251.         cmps  [b,x]          'B' register indirect index
  252.         cmps  [d,x]          'D' ('A' & 'B') register indirect index
  253.         cmps  ,x+            index with 1 post-increment
  254.         cmps  ,x++           index with 2 post-increment
  255.         cmps  ,-x            index with 1 pre-decrement
  256.         cmps  ,--x           index with 2 pre-decrement
  257.         cmps  [,x++]         indirect index with post-increment
  258.         cmps  [,--x]         indirect index with pre-drecement
  259.         cmps  1,pcr          8 bit index from 'PC'
  260.         cmps  64,pcr         8 bit index from 'PC'
  261.         cmps  <DLabel,pcr    forced 8 bit index from 'PC'
  262.         cmps  4096,pcr       16 bit index from 'PC'
  263.         cmps  >DLabel,pcr    forced 16 bit index from 'PC'
  264.         cmps  [1,pcr]        8 bit indirect index from 'PC'
  265.         cmps  [64,pcr]       8 bit indirect index from 'PC'
  266.         cmps  [4096,pcr]     16 bit indirect index from 'PC'
  267.         cmps  [Label1]       memory indirect
  268.         page
  269. cmpu1   cmpu  #12            immediate
  270.         cmpu  DLabel         extended
  271.         cmpu  Label1         extended
  272.         cmpu  <Label2        forced direct
  273.         cmpu  >Label1        forced extended
  274.         cmpu  Label1         extended
  275.         cmpu  Label2         direct
  276.         cmpu  ,x             0 bit offset index
  277.         cmpu  1,x            5 bit offset index
  278.         cmpu  64,x           8 bit offset index
  279.         cmpu  4096,x         16 bit offset index
  280.         cmpu  [,x]           0 bit offset indirect index
  281.         cmpu  [1,x]          5 bit offset indirect index
  282.         cmpu  [64,x]         8 bit offset indirect index
  283.         cmpu  [4096,x]       16 bit offset indirect index
  284.         cmpu  a,x            'A' register index
  285.         cmpu  b,x            'B' register index
  286.         cmpu  d,x            'D' ('A' & 'B') register index
  287.         cmpu  [a,x]          'A' register indirect index
  288.         cmpu  [b,x]          'B' register indirect index
  289.         cmpu  [d,x]          'D' ('A' & 'B') register indirect index
  290.         cmpu  ,x+            index with 1 post-increment
  291.         cmpu  ,x++           index with 2 post-increment
  292.         cmpu  ,-x            index with 1 pre-decrement
  293.         cmpu  ,--x           index with 2 pre-decrement
  294.         cmpu  [,x++]         indirect index with post-increment
  295.         cmpu  [,--x]         indirect index with pre-drecement
  296.         cmpu  1,pcr          8 bit index from 'PC'
  297.         cmpu  64,pcr         8 bit index from 'PC'
  298.         cmpu  <DLabel,pcr    forced 8 bit index from 'PC'
  299.         cmpu  4096,pcr       16 bit index from 'PC'
  300.         cmpu  >DLabel,pcr    forced 16 bit index from 'PC'
  301.         cmpu  [1,pcr]        8 bit indirect index from 'PC'
  302.         cmpu  [64,pcr]       8 bit indirect index from 'PC'
  303.         cmpu  [4096,pcr]     16 bit indirect index from 'PC'
  304.         cmpu  [Label1]       memory indirect
  305.         page
  306. cmpx1   cmpx  #12            immediate
  307.         cmpx  DLabel         extended
  308.         cmpx  Label1         extended
  309.         cmpx  <Label2        forced direct
  310.         cmpx  >Label1        forced extended
  311.         cmpx  Label1         extended
  312.         cmpx  Label2         direct
  313.         cmpx  ,x             0 bit offset index
  314.         cmpx  1,x            5 bit offset index
  315.         cmpx  64,x           8 bit offset index
  316.         cmpx  4096,x         16 bit offset index
  317.         cmpx  [,x]           0 bit offset indirect index
  318.         cmpx  [1,x]          5 bit offset indirect index
  319.         cmpx  [64,x]         8 bit offset indirect index
  320.         cmpx  [4096,x]       16 bit offset indirect index
  321.         cmpx  a,x            'A' register index
  322.         cmpx  b,x            'B' register index
  323.         cmpx  d,x            'D' ('A' & 'B') register index
  324.         cmpx  [a,x]          'A' register indirect index
  325.         cmpx  [b,x]          'B' register indirect index
  326.         cmpx  [d,x]          'D' ('A' & 'B') register indirect index
  327.         cmpx  ,x+            index with 1 post-increment
  328.         cmpx  ,x++           index with 2 post-increment
  329.         cmpx  ,-x            index with 1 pre-decrement
  330.         cmpx  ,--x           index with 2 pre-decrement
  331.         cmpx  [,x++]         indirect index with post-increment
  332.         cmpx  [,--x]         indirect index with pre-drecement
  333.         cmpx  1,pcr          8 bit index from 'PC'
  334.         cmpx  64,pcr         8 bit index from 'PC'
  335.         cmpx  <DLabel,pcr    forced 8 bit index from 'PC'
  336.         cmpx  4096,pcr       16 bit index from 'PC'
  337.         cmpx  >DLabel,pcr    forced 16 bit index from 'PC'
  338.         cmpx  [1,pcr]        8 bit indirect index from 'PC'
  339.         cmpx  [64,pcr]       8 bit indirect index from 'PC'
  340.         cmpx  [4096,pcr]     16 bit indirect index from 'PC'
  341.         cmpx  [Label1]       memory indirect
  342.         page
  343. cmpy1   cmpy  #12            immediate
  344.         cmpy  DLabel         extended
  345.         cmpy  Label1         extended
  346.         cmpy  <Label2        forced direct
  347.         cmpy  >Label1        forced extended
  348.         cmpy  Label1         extended
  349.         cmpy  Label2         direct
  350.         cmpy  ,x             0 bit offset index
  351.         cmpy  1,x            5 bit offset index
  352.         cmpy  64,x           8 bit offset index
  353.         cmpy  4096,x         16 bit offset index
  354.         cmpy  [,x]           0 bit offset indirect index
  355.         cmpy  [1,x]          5 bit offset indirect index
  356.         cmpy  [64,x]         8 bit offset indirect index
  357.         cmpy  [4096,x]       16 bit offset indirect index
  358.         cmpy  a,x            'A' register index
  359.         cmpy  b,x            'B' register index
  360.         cmpy  d,x            'D' ('A' & 'B') register index
  361.         cmpy  [a,x]          'A' register indirect index
  362.         cmpy  [b,x]          'B' register indirect index
  363.         cmpy  [d,x]          'D' ('A' & 'B') register indirect index
  364.         cmpy  ,x+            index with 1 post-increment
  365.         cmpy  ,x++           index with 2 post-increment
  366.         cmpy  ,-x            index with 1 pre-decrement
  367.         cmpy  ,--x           index with 2 pre-decrement
  368.         cmpy  [,x++]         indirect index with post-increment
  369.         cmpy  [,--x]         indirect index with pre-drecement
  370.         cmpy  1,pcr          8 bit index from 'PC'
  371.         cmpy  64,pcr         8 bit index from 'PC'
  372.         cmpy  <DLabel,pcr    forced 8 bit index from 'PC'
  373.         cmpy  4096,pcr       16 bit index from 'PC'
  374.         cmpy  >DLabel,pcr    forced 16 bit index from 'PC'
  375.         cmpy  [1,pcr]        8 bit indirect index from 'PC'
  376.         cmpy  [64,pcr]       8 bit indirect index from 'PC'
  377.         cmpy  [4096,pcr]     16 bit indirect index from 'PC'
  378.         cmpy  [Label1]       memory indirect
  379.         page
  380. com1    coma                 inherent
  381.         comb                 inherent
  382.  
  383.         com   DLabel         extended
  384.         com   Label1         extended
  385.         com   <Label2        forced direct
  386.         com   >Label1        forced extended
  387.         com   Label1         extended
  388.         com   Label2         direct
  389.         com   ,x             0 bit offset index
  390.         com   1,x            5 bit offset index
  391.         com   64,x           8 bit offset index
  392.         com   4096,x         16 bit offset index
  393.         com   [,x]           0 bit offset indirect index
  394.         com   [1,x]          5 bit offset indirect index
  395.         com   [64,x]         8 bit offset indirect index
  396.         com   [4096,x]       16 bit offset indirect index
  397.         com   a,x            'A' register index
  398.         com   b,x            'B' register index
  399.         com   d,x            'D' ('A' & 'B') register index
  400.         com   [a,x]          'A' register indirect index
  401.         com   [b,x]          'B' register indirect index
  402.         com   [d,x]          'D' ('A' & 'B') register indirect index
  403.         com   ,x+            index with 1 post-increment
  404.         com   ,x++           index with 2 post-increment
  405.         com   ,-x            index with 1 pre-decrement
  406.         com   ,--x           index with 2 pre-decrement
  407.         com   [,x++]         indirect index with post-increment
  408.         com   [,--x]         indirect index with pre-drecement
  409.         com   1,pcr          8 bit index from 'PC'
  410.         com   64,pcr         8 bit index from 'PC'
  411.         com   <DLabel,pcr    forced 8 bit index from 'PC'
  412.         com   4096,pcr       16 bit index from 'PC'
  413.         com   >DLabel,pcr    forced 16 bit index from 'PC'
  414.         com   [1,pcr]        8 bit indirect index from 'PC'
  415.         com   [64,pcr]       8 bit indirect index from 'PC'
  416.         com   [4096,pcr]     16 bit indirect index from 'PC'
  417.         com   [Label1]       memory indirect
  418.  
  419.         cwai  #1             immediate
  420. EndLabel equ  $
  421.